package com.xlf.service.blog.domain.dto;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class AddCommentDTO implements Serializable {


    /**
     * 类型 (1文章 2友链 )
     */
    @NotNull(message = "评论类型不能为空")
    private Integer commentType;

    /**
     * 回复的类型的id
     */
    private Long typeId;

    /**
     * 父评论id
     */
    private Long parentId;

    /**
     * 回复的顶级评论id
     */
    private Long replyId;

    /**
     * 评论内容
     */
    @Size(max = 120, message = "字符串长度不能超过120")
    @NotBlank(message = "回复内容不能为空")
    private String commentContent;


    /**
     * 回复谁
     */
    private Long toUid;



    private static final long serialVersionUID = 1L;
}
